package com.ruoyi.student.service.impl;


import com.ruoyi.student.domain.Student;
import com.ruoyi.student.mapper.StudentMapper;
import com.ruoyi.student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    StudentMapper mapper;
    @Override
    public List<Student> getStudentList() {
        return   mapper.queryAll();}

    @Override
    public int insertStudent(Student student) {
        return mapper.insertStudent(student);
    }

    @Override
    public int updateStudent(Student student) {
        return mapper.updateStudent(student);
    }

    @Override
    public int deleteStudent(int id) {
        return mapper.deleteStudent(id);
    }
}

